package com.example.demo.order.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 差评申诉表;
 * </p>
 *
 * @author 涛
 * @since 2024-08-01
 */
@Data
public class OBadCommentAppeal implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单ID;外键关联订单表
     */
    @TableField("OID")
    private String oid;

    /**
     * 订单评论ID;外键关联订单评论表
     */
    @TableField("OCID")
    private String ocid;

    /**
     * 申诉事由
     */
    @TableField("APPEAL_REASON")
    private String appealReason;

    /**
     * 申诉结果
     */
    @TableField("APPEAL_RESULT")
    private String appealResult;

    /**
     * 申诉完成时间
     */
    @TableField("COMPLETE_DATE")
    private String completeDate;

    /**
     * 创建人
     */
    @TableField("CREATED_BY")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value="CREATED_TIME",fill = FieldFill.INSERT)
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime createdTime;

    /**
     * 更新人
     */
    @TableField("UPDATED_BY")
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value="UPDATED_TIME",fill = FieldFill.UPDATE)
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime updatedTime;

    @Override
    public String toString() {
        return "OBadCommentAppeal{" +
        "id=" + id +
        ", oid=" + oid +
        ", ocid=" + ocid +
        ", appealReason=" + appealReason +
        ", appealResult=" + appealResult +
        ", completeDate=" + completeDate +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        "}";
    }
}
